Button question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NewGuy
    New Member
    • Nov 2006
    • 14

    Button question

    My HTML.doc uses:

    <INPUT TYPE="button" VALUE="EDIT" /> and a JS doc to open a new window.

    The window is actually opened in the JS with where a switch statement uses the value of the button to invoke

    window.open("Ed itPage.html","E dit",
    "toolbar=yes,re sizable=yes,sta tus=yes,width=5 00,height=500") ;



    How do I skip the JS doc and open the window from the HTML without using a picture and a button. I guess what I'm wondering is there a way I can open this window with something like:
    <INPUT TYPE="button" VALUE="EDIT" SCR="EditPage.h tml" />

    If anyone can point me to some code I would apreciate it.

    Thanks
  • AricC
    Recognized Expert Top Contributor
    • Oct 2006
    • 1885

    #2
    Originally posted by NewGuy
    My HTML.doc uses:

    <INPUT TYPE="button" VALUE="EDIT" /> and a JS doc to open a new window.

    The window is actually opened in the JS with where a switch statement uses the value of the button to invoke

    window.open("Ed itPage.html","E dit",
    "toolbar=yes,re sizable=yes,sta tus=yes,width=5 00,height=500") ;



    How do I skip the JS doc and open the window from the HTML without using a picture and a button. I guess what I'm wondering is there a way I can open this window with something like:
    <INPUT TYPE="button" VALUE="EDIT" SCR="EditPage.h tml" />

    If anyone can point me to some code I would apreciate it.

    Thanks
    Not really sure what you mean by "open the window from the HTML without using a picture and a button" but I see a problem with your button the SRC attribute is only available if the input type is image. Please clarify what you would like to happen.

    Comment

    • NewGuy
      New Member
      • Nov 2006
      • 14

      #3
      Thank you for your response.

      I was frustrated yesterday and gave up. Last night I read some more and found out what I wanted.

      I was trying to open a window with a button and eliminate the JS that I was using to do that.

      Thanks again. I'm sure this is not my last question.

      Comment

      • AricC
        Recognized Expert Top Contributor
        • Oct 2006
        • 1885

        #4
        Originally posted by NewGuy
        Thanks again. I'm sure this is not my last question.
        Good! Ask more. What solution did you come up with?

        Comment

        Working...