How : click a button and display an existing page?

General discussions related to php

Moderators: macek, egami, gesf

onlo
New php-forum User
New php-forum User
Posts: 2
Joined: Thu Dec 13, 2012 7:12 am

How : click a button and display an existing page?

Postby onlo » Sat Dec 29, 2012 8:49 am

I can create a button and popup a window dynamically :

<form action="description.php">
<input type="button" value="How it works" onclick="openWin()" id='description'>
</form>
<script>
function openWin() {
myWindow=window.open('','','width=1000,height=500');
myWindow.document.write("<p>This is 'myWindow'</p>");
myWindow.focus();}
</script>

However, I want to click a button and display an existing page (a page already created with another tool), how can I do that ?

Snaek
New php-forum User
New php-forum User
Posts: 11
Joined: Sat Dec 29, 2012 6:02 pm

Re: How : click a button and display an existing page?

Postby Snaek » Tue Jan 01, 2013 9:24 pm

I can create a button and popup a window dynamically :

What do you mean by dynamically?


Return to “PHP General”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest