Jump to content

Use HTML within Javasccript If Statements


Recommended Posts

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.

 

Link to comment
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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.

Loading...
×
×
  • Create New...