Welcome visitor
* Login
* Register
It is currently May 22nd, 2019, 2:49 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » JavaScript



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  Submit and resize target window
PostPosted: January 7th, 2010, 8:41 pm 

Posts: 16
Hi ppl,

I have this question that is a mixture of HTML and JavaScript. I would like to open a popup window when a form is submitted. The JavaScript part is that the popup should have a certain size, so I don't know how to create the window when the form is submitted.

I can set the target of the form to "_blank" but it will be a full screen window. Do I make my point clear? :|
Thank you.


Top
 Profile  
 
  Re: Submit and resize target window
PostPosted: January 8th, 2010, 10:26 pm 
User avatar

Posts: 42
<form onsubmit="submitform();" target="thesmall" action="process.php">
//the function will run before sending the data, and it will create the window
<script>
function submitform()
{nw=window.open('','thesmall','width=300,height=300');}
</script>


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

FORUMS » Client Side » JavaScript


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