Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

How : click a button and display an existing page?

General discussions related to php

Moderators: macek, egami, gesf

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 ?
onlo
New php-forum User
New php-forum User
 
Posts: 2
Joined: Thu Dec 13, 2012 7:12 am

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?
Snaek
New php-forum User
New php-forum User
 
Posts: 11
Joined: Sat Dec 29, 2012 6:02 pm


Return to PHP General

Who is online

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

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.