help with coding

  1. #1
    bobsalas is offline Newbie

    Question help with coding

    I am helping a friend with her soap business (www.tresbellesoap.com) website.

    She wants to have links from her products page open a preset sized window that will display the info of the product selected with limited IE or Netscape nav buttons.

    Can someone help me with the coding. Please.
    Thanks,


  2. #2
    D-A-L is online now D-A-L Administrator
    Tackle the Web with $5.99 .COM's from Go Daddy!
    Hi,

    Yep you can use a simple bit of javascript. In the products page betwenn the head tags put the code:
    Code:
    <script language="JavaScript">
    function openWindow() { 
    popupWin = window.open('http://www.d-a-l.com', 'remote', 'width=500,height=300')
    }
    </script>


    Now create a link on that products page with the code below, that link will then launch the new window.
    Code:
    <a href="javascript:openWindow();">Open window</a>


    I hope this helps

+ Reply to Thread

Similar Threads