Welcome visitor
* Login
* Register
It is currently May 20th, 2019, 6:38 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
  autofill external forms
PostPosted: October 26th, 2009, 11:25 am 

Posts: 26
Don't know if this is possible at all, but I would like to load search engines (google, bing, etc.) in popup windows and fill the search field automatically in 'em all. Can I even do it or not?


Top
 Profile  
 
  Re: autofill external forms
PostPosted: October 26th, 2009, 1:33 pm 

Posts: 117
No, because of security reasons you can't interact with external sites. This works with local forms:
---File with the form.htm, to be loaded on the popup---
<html>
<head>
<title></title>
</head>
<body>
<form name="form">
<input name="field1">
</form>
</body>
</html>
---Popup opener.htm---
<html>
<head>
<title></title>
<script type="text/javascript">
function openwindow(){
chill=window.open('File with the form.htm','','');
chill.document.form.field1.value='like this';
}
</script>
</head>
<body>
<input type="button" value="check this example" onclick="openwindow();">
</body>
</html>


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