Welcome visitor
* Login
* Register
It is currently July 15th, 2019, 8:08 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  input field as link
PostPosted: May 30th, 2009, 8:19 am 

Posts: 18
hey, i am making a website for my friends and each one have their one html document. how can i do to show them on the home.html an input field where they can type their name and it would take them to their own page on the site? does that make sense or do you need more details or a better explanation? thank you.


Top
 Profile  
 
  Re: input field as link
PostPosted: May 30th, 2009, 8:25 am 

Posts: 55
<input id="address" />
<input type="button" value="visit URL"
onClick="window.open('http://www.yoursite.com/'+document.getElementById('address').value+'.html','_self');" />

http://www.scriptingok.com/forum/viewtopic.php?f=5&t=388


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron