Skip to content

Instantly share code, notes, and snippets.

@yomon8
Last active December 18, 2015 08:59
Show Gist options
  • Save yomon8/5757705 to your computer and use it in GitHub Desktop.
Save yomon8/5757705 to your computer and use it in GitHub Desktop.
(function(){
var noteurl = '';
note_num = window.prompt('Please input SAP note number...').replace(/(^\s+)|(\s+$)/g, "");
if(!note_num || !/^[0-9]{1,10}$/.test(note_num)) {
alert('Please input valid number');
return false;
}
else
{
noteurl = 'http://service.sap.com/sap/support/notes/' + note_num;
}
window.open(noteurl);
return;
}
)();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment