Accountability

Use HTML within Javasccript If Statements

2 posts in this topic

I am utilizing an HTML Block (Header) and would like to do the following:

if ("menuchoice== option1")

   do this:
&nbsp; &nbsp; &nbsp; &nbsp;<a href="https://www.xxxx-xxxx.net/webapps/shca/SA_Document_SUD_Employee_Search_Auto_Submit.html"><img alt="Search Again ?" src="https://xxxx-xxxx.net/webapps/common/Magnifing_Glass.png" style="width: 43.9773px; height: 38.9915px;" /></a>&nbsp;<br />
&nbsp;&nbsp;<span style="color:#D3D3D3;"><strong><span style="font-size:14px;"><span style="font-family:arial,helvetica,sans-serif;">Search Again ?</span></span></strong></span>

or if ("menuchoice== option2")

   do this:
&nbsp; &nbsp; &nbsp; &nbsp;<a href="https://www.xxxx-xxxx.net/webapps/shca/SA_Employee_Search_Auto_Submit.html"><img alt="Search Again ?" src="https://xxxx-xxxx.net/webapps/common/Magnifing_Glass.png" style="width: 43.9773px; height: 38.9915px;" /></a>&nbsp;<br />
&nbsp;&nbsp;<span style="color:#D3D3D3;"><strong><span style="font-size:14px;"><span style="font-family:arial,helvetica,sans-serif;">Search Again ?</span></span></strong></span

 

Is this possible in Javascript ?  Thanks for you help.

 

Share this post


Link to post
Share on other sites
On 10/10/2017 at 5:20 AM, Accountability said:

I am utilizing an HTML Block (Header) and would like to do the following:

if ("menuchoice== option1")

   do this:
&nbsp; &nbsp; &nbsp; &nbsp;<a href="https://www.xxxx-xxxx.net/webapps/shca/SA_Document_SUD_Employee_Search_Auto_Submit.html"><img alt="Search Again ?" src="https://xxxx-xxxx.net/webapps/common/Magnifing_Glass.png" style="width: 43.9773px; height: 38.9915px;" /></a>&nbsp;<br />
&nbsp;&nbsp;<span style="color:#D3D3D3;"><strong><span style="font-size:14px;"><span style="font-family:arial,helvetica,sans-serif;">Search Again ?</span></span></strong></span>

or if ("menuchoice== option2")

   do this:
&nbsp; &nbsp; &nbsp; &nbsp;<a href="https://www.xxxx-xxxx.net/webapps/shca/SA_Employee_Search_Auto_Submit.html"><img alt="Search Again ?" src="https://xxxx-xxxx.net/webapps/common/Magnifing_Glass.png" style="width: 43.9773px; height: 38.9915px;" /></a>&nbsp;<br />
&nbsp;&nbsp;<span style="color:#D3D3D3;"><strong><span style="font-size:14px;"><span style="font-family:arial,helvetica,sans-serif;">Search Again ?</span></span></strong></span

 

Is this possible in Javascript ?  Thanks for you help.

 

What type of the datapage do you use? You may have a look at this and this post

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now