TechnicalLoser
Technical User
I have a catalog and when a person clicks on the buy button it brings up the shopping cart window in a new window. I use an onload function to name the cart window. "checkout"
onload namer( ) ....
function namer( ){window.name="checkout"}
I have a link for people to blur the cart window so they are back at the catalog. All this works great and I have tested to make sure that the cart window is named "checkout". I have an image link in the catalog that when clicked should make the cart window have the focus. Function below:
function cartfoc( ) {checkout.focus( )}
But nothing happens and when I check type in javascript: to see the error it says somethinig along the lines of Javascript Error....
checkout is not defined.
Could somebody please help. I thank you in advance for your help.
onload namer( ) ....
function namer( ){window.name="checkout"}
I have a link for people to blur the cart window so they are back at the catalog. All this works great and I have tested to make sure that the cart window is named "checkout". I have an image link in the catalog that when clicked should make the cart window have the focus. Function below:
function cartfoc( ) {checkout.focus( )}
But nothing happens and when I check type in javascript: to see the error it says somethinig along the lines of Javascript Error....
checkout is not defined.
Could somebody please help. I thank you in advance for your help.