Your HostICan Community  


Go Back   Your HostICan Community > Programming & Design > Javascript / Java Applets

Javascript / Java Applets Are you a JavaScript guy? Do you need help with JavaScript? This is the place to talk about anything related to Java.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-16-2009, 09:21 AM
XekZ XekZ is offline
Junior Member
 
Join Date: Feb 2009
Posts: 4
Default dynamic popup with JavaScript code on my hosting

I want to use a pop-up JavaScript function, which is called when activating a link in my page on my hosting. If someone can make a code and explain me how it work, I will be grateful.
Reply With Quote
  #2  
Old 06-16-2009, 09:53 AM
iceman1's Avatar
iceman1 iceman1 is offline
Senior Member
 
Join Date: Jan 2009
Posts: 100
Default Re: dynamic popup with JavaScript code on my hosting

The following function is recorded between < head > ... of your HTML document:
HTML Code:
<script language="JavaScript">
<!--
function openPopup(url, width, height, scrollbars, resizeable){
    window.open(url,'popup','width='+width+', height='+height+', scrollbars='+scrollbars+', resizeable='+resizeable+'')
}
//-->
</script>
To use this function create a link and save into tag following command:
HTML Code:
<a href="#" onClick="javascript:openPopup('site.html','300','200','yes','no');">Test</a>
After activating the link will open PopUp with an html document with size width = 300, height = 200, without changing the dimensions.
Reply

Tags
code, dynamic, hosting, javascript, popup

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 03:21 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.

Copyright © 2003 - 2008 HostICan. All Rights Reserved.