Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OpenWindow Javascript

Status
Not open for further replies.

khurram

IS-IT--Management
Jan 10, 2001
95
CA
I am having trouble with following:

<A href=&quot;javascript:NewPopupWindow('showitemdetails.cfm?systemconfig=#Session.sShoppingCart[SCItems][4]#&amp;custom=#Session.sShoppingCart[SCItems][5]#')&quot; style=&quot;&quot; target=&quot;&quot; class=&quot;ProductMenu&quot;>

Everytime I click on the hyperlink, the hourglass comes up beside the mouse pointer until I click stop. It seems like the code is hung (but what do I know).

Also, how can I size the window?

Thanks.
 
Here is the script for opening window

*/*/*/*/*/*/*/*/*/*/*/*/*

/******************

this script function goes into the head

<script LANGUAGE=&quot;JavaScript&quot;>
function desc(name){
game=window.open (name,&quot;&quot;,&quot;width=525,height=440,resizable=0,location=0,status=0,menubar=0,scrollbars=yes&quot;)
}

</script>


/******************

open window
is goes in the a href link where you want to open a window of a certain paramitter and size

Javascript:desc('replace this text the html file you want to open')

// Javascript:desc('')

/******************
this goes into the a href of the close window in the child window

close script

Javascript:close('game') Unicorn11
abhishek@tripmedia.com

[red]Luck is not chance, it's toil; fortune's expensive
smile is earned.[red]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top