Variable Visions

Articles jQuery NetSuite-missing-category-Javascript-Redirect


tutorials - jQuery and Web-Development.

NetSuite missing category Javascript Redirect

Published Thu. Mar. 21, 2013


Add an #_redirect404 id around the custom text. (Setup > Customize Text > Error Messages SubTab > This Category is no longer available.

<td class='medtextbold'><span id="_redirect404">This category is no longer available.</span></td>

And then, place this script within your template:

if(document.getElementById('_redirect404')!=null){
     window.location="http://url.com/";
}

 

Next time, I'll use getElementById futher.


Tag(s): document.getElementById, NetSuite missing category Javascript Redirect



RECENT ARTICLES:

PUBLISHED ON 01.19.23arrowAlarm Timer with Vanilla Javascript

PUBLISHED ON 01.13.23arrowJavascript Game using Phaser IO

TAGS

CATEGORIES