Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

Oh, i see, but how do i...

 

Add an attribute to an html button .... OnClick="javascript:history.back()"

 

Was posted by Papa but changed

 

do i create a web forms button or an html button on the form?

Where is the above code assigned to the button once i have created it? Within the HTML page code, within the VB code for the form?

 

thanks.

 

Papa

 

 

After some clutching of straws and other such things i managed to get this to work. I had to create a HTML button on my form, then convert it to a server control (right click to convert) and then on the page load, within the vb/js of the page i had this code...

 


cmdBackButton.Attributes.Add("OnClick", "javascript:history.back()")

 

cheers,

 

papa.

Edited by papa_k
without time nothing ever ends

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...