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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MS Edge - onclick="..." not triggered 1

Status
Not open for further replies.

southbeach

Programmer
Jan 22, 2008
879
US
I have a very simple snippet
Code:
<input class="jlSubmitForm" type="button" onmouseover="this.style.cursor='pointer';" name="Submit" value="Log in!" onclick="submitForm('1');" style="width: 80%; border: 1px solid rgb(0, 0, 0); cursor: pointer;">

some where in my .js file, I have
Code:
function submitForm(strKey) {
alert('Hello!');
}

works in every browser except for Win-10 MS-Edge.

I have jquery based slide and the slide works fine yet, onclick() does not.

What am I missing here?


--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.
 
Your code works for me as is in Edge.

Are you sure your js file is getting read correctly?

Are you getting any JS errors?

You can use Edge's developer console to see if you are getting any errors. Just hit the f12 key on your keyboard while in the Edge browser to bring it up. Click on "Console" to see if you have any JS errors.

----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech
 
It turns out, the error on my page were due to 404 error - I was pointing to a CSS document which I had gotten rid of but did not fix my header ...

I removed the link tags and after page loaded without errors, all works fine!

Thanks!!!!!

--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top